
const btn1 = document.getElementById("btn1")
const btn2 = document.getElementById("btn2")
const btn3 = document.getElementById("btn3")
const input = document.getElementById("inp")
btn1.onclick = () => {
    dialog.showMessageBox({
        type: 'info',
        title: 'Alert',
        message: message,
        buttons: ['OK']
    }).then(() => {
        // 处理按钮点击事件，如果需要的话
    });
    // alert(myAPI.version)
}
btn2.onclick = () => {
    myAPI.saveFile(input.value)
}
btn3.onclick = async () => {
    const res = await myAPI.readFile()
    alert(res)
}
